#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"
char dismantlingAction(char* arr);
char dismantlingAction(char* arr) {
    int num[26] = { 0 };
    int size = strlen(arr);
    for (int i = 0; i < size; i++) {
        num[arr[i] - 'a']++;
    }
    for (int i = 0; arr[i] != '\0'; i++) {
        if (num[arr[i] - 'a'] == 1)
            return arr[i];
    }
    return ' ';
}
void q1() {
    char arr[] = { 'a','b','b','c','c','d','e','f','f'};
    printf("%c\n", dismantlingAction(arr));
}
void q2() {
    MyStack* x = myStackCreate();
    myStackPush(x, 1);
    myStackPush(x, 2);
    printf("%d ", myStackPop(x));
    printf("%d ", myStackTop(x));
}
int main() {
    q2();
}